package a02_staticStudent;

/**
 * @Author quan
 * @Description javaBean类
 * (1)定义一个集合，用于存储三个学生对象。学生类的属性为：name,age,gender
 * (2)定义一个工具类，用于获取集合中最大学生的年龄
 * @Date 2023/1/24 23:34
 */
public class Student {
    //成员变量
    private String name;
    private int age;
    private String gender;

    //空参和全参的构造方法

    public Student() {
    }

    public Student(String name, int age, String gender) {
        this.name = name;
        this.age = age;
        this.gender = gender;
    }

    //每个成员变量的get和set方法

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

}
